package com.yungu.swift.common.dao;


import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.common.model.dto.CommonArticleDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * CommonArticleMapper数据库操作接口类
 **/
@Mapper
public interface CommonArticleMapper extends IMapper<CommonArticleDto> {
    /**
     * 统计今日
     *
     * @return int
     */
    int getTodayCount();

    /**
     * 访问统计计数
     *
     * @param uuid
     * @return
     */
    int visitCount(@Param("uuid") String uuid);

    /**
     * 获取相关协议
     *
     * @param params
     * @return
     */
    List<CommonArticleDto> listPolicy(List<Integer> params);
}